package org.amphiprion.montrictracv4.web.model;

import java.util.List;

import org.amphiprion.apiforanywebsite.annotation.WebElement;
import org.amphiprion.apiforanywebsite.annotation.WebElement.ValueType;
import org.amphiprion.apiforanywebsite.annotation.WebElementRoot;

@WebElementRoot(cssSelector = "div[id=app-main]")
public class WebGameDetail {

	@WebElement(cssSelector = "div[class~=block_title] h2>span>span")
	public String name;

	@WebElement(cssSelector = "div[class=block_img row] img[class~=img-boardgame]", valueType = ValueType.ATTRIBUTE, attributeName = "src")
	public String image;

	@WebElement(cssSelector = "div[class=block_title_extensions]")
	public List<WebExtension> extensionOf;

	@WebElement(cssSelector = "tr[class~=players] > td > a > span")
	public String players;

	@WebElement(cssSelector = "tr[class~=years] > td > a > span")
	public String ages;

	@WebElement(cssSelector = "tr[class~=duration] > td > a")
	public String duration;

	@WebElement(cssSelector = "div[class~=cke-content]")
	public String sumary;

	@WebElement(cssSelector = "#app-main > div.col960.center.boardgame > div > div.block_table_votes.col960 > div.block_table_stats > div > table > tbody > tr:nth-child(1) > td:nth-child(2) > span.rating > span.average > strong")
	public float score;

	@WebElement(cssSelector = "#app-main > div.col960.center.boardgame > div > div.block_table_votes.col960 > div.block_table_stats > div > table > tbody > tr:nth-child(2) > td:nth-child(2) > span:nth-child(3)")
	public int nbVotes;

	@WebElement(cssSelector = "div[class=block_table_infos] tr")
	public List<WebUserInfo> userInfos;

	@WebElement(cssSelector = "div[class=block_table_characteristics] tr")
	public List<WebUserCarac> userCaracs;

	@WebElement(cssSelector = "div[class=block_table_mecanismes] tr")
	public List<WebUserMecanism> userMecanisms;
}
